Skip to content

refactor: Remove DEFER_LAST as a priority#11343

Merged
sjrl merged 2 commits into
v3from
remove-defer-last
May 20, 2026
Merged

refactor: Remove DEFER_LAST as a priority#11343
sjrl merged 2 commits into
v3from
remove-defer-last

Conversation

@sjrl
Copy link
Copy Markdown
Contributor

@sjrl sjrl commented May 20, 2026

Related Issues

Proposed Changes:

The observation was that DEFER_LAST did not add anything that DEFER didn't already handle. And in fact it caused pipeline runtime bugs since it required treating DEFER and DEFER_LAST as equal priorities in all places they appeared in the code which was initially missed when DEFER_LAST was first added.

How did you test it?

Existing test suite including pipeline behavior tests.

Notes for the reviewer

I wanted to get this one in early so we have ample time to test and see if any issues arise.

Checklist

  • I have read the contributors guidelines and the code of conduct.
  • I have updated the related issue with new insights and changes.
  • I have added unit tests and updated the docstrings.
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test: and added ! in case the PR includes breaking changes.
  • I have documented my code.
  • I have added a release note file, following the contributors guidelines.
  • I have run pre-commit hooks and fixed any issue.

@sjrl sjrl requested a review from a team as a code owner May 20, 2026 06:50
@sjrl sjrl requested review from anakin87 and removed request for a team May 20, 2026 06:50
@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
haystack-docs Ignored Ignored May 20, 2026 6:50am

Request Review

@github-actions
Copy link
Copy Markdown
Contributor

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  haystack/core/pipeline
  async_pipeline.py 440-445
  base.py
  component_checks.py
  pipeline.py
Project Total  

This report was generated by python-coverage-comment-action

@claude
Copy link
Copy Markdown

claude Bot commented May 20, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

1 similar comment
@claude
Copy link
Copy Markdown

claude Bot commented May 20, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@anakin87
Copy link
Copy Markdown
Member

Since I am not completely aware of all the implications, I'd prefer it if @julian-risch could also take a look.

@anakin87 anakin87 requested a review from julian-risch May 20, 2026 07:57
Copy link
Copy Markdown
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me and as we discussed earlier in detail, I am confident too that this change doesn't lead to unexpected behavior. Good idea to test this more in the next weeks by merging it early in the process! 👍

@julian-risch julian-risch removed the request for review from anakin87 May 20, 2026 08:31
@sjrl sjrl merged commit 8527079 into v3 May 20, 2026
22 checks passed
@sjrl sjrl deleted the remove-defer-last branch May 20, 2026 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants